/**
 * Created by huhai on 17/8/14.
 */
import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './actions'

Vue.use(Vuex)

// window.fetch() 的 Polyfill

const createStore = ()=>{
  return new Vuex.Store({
    state: {
      testData: null
    },
    mutations,
    actions
  })
}

export default createStore